<script setup>
import { getLogList } from '@/api/log.js'
import { ref, reactive, onMounted } from 'vue'

const logList  = ref([])

onMounted(() => {
    console.log('===> Log.vue中的onMounted()方法执行了');
    
    // 获取日志列表
    getLogList().then(res => {
        console.log("==> 后从端抓到日志列表：{}", res.data.data)
        logList.value = res.data.data
    })
})

</script>

<template>
    <h2>日志列表</h2>
</template>

<style scoped>

</style>